package com.hoshiicloud.lessee.feign.hystrix;

import com.hoshiicloud.common.query.UploadFileResponse;
import com.hoshiicloud.common.rpc.Response;

import com.hoshiicloud.lessee.feign.LesseeFileUploadService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.multipart.MultipartFile;

/**
 * @program: hoshiicloud
 * @description: 文件服务熔断
 * @author: Mr.wu
 * @create: 2019-06-04 10:59
 **/
@Slf4j
public class LesseeFileUploadServiceFeignFallback implements LesseeFileUploadService {

    @Override
    public Response<UploadFileResponse> fileUpload(String bucketName, String objectKey, String fileName, String folder, Boolean privateOwned, MultipartFile file) {
        return Response.failed("文件上传失败");
    }
}
